import yaml

from transform_excel_tools.util import path_utils


class ConfUtils(object):
    def __init__(self):
        with open(path_utils.app_path() + '/config/config.yml', 'r', encoding='utf-8') as f:
            self.__conf = yaml.load(f, Loader=yaml.FullLoader)
            self.__service_conf = self.__conf.get('service')
            self.__logging_file_conf = self.__conf.get('logging-file')

    def get_service_conf(self):
        return self.__service_conf

    def get_logging_file_conf(self):
        return self.__logging_file_conf


conf_utils = ConfUtils()
